package com.baosight.risk.service.xtdc.entity;

import javax.persistence.*;

import com.baosight.risk.base.entity.BaseEntity;
import lombok.Data;

/**
 * Table: T_XTDC_ATTACH
 */
@Data
@Table(name = "T_XTDC_ATTACH")
public class XtdcAttach extends BaseEntity {

    /**
     * 文件名称
     * <p>
     * Table:     T_XTDC_ATTACH
     * Column:    FILE_NAME
     * Nullable:  true
     */
    @Column(name = "FILE_NAME")
    private String fileName;

    /**
     * 文件路径
     * <p>
     * Table:     T_XTDC_ATTACH
     * Column:    FILE_PATH
     * Nullable:  true
     */
    @Column(name = "FILE_PATH")
    private String filePath;

    /**
     * 文件大小
     * <p>
     * Table:     T_XTDC_ATTACH
     * Column:    FILE_SIZE
     * Nullable:  true
     */
    @Column(name = "FILE_SIZE")
    private Long fileSize;

    /**
     * 文件类型
     * <p>
     * Table:     T_XTDC_ATTACH
     * Column:    FILE_TYPE
     * Nullable:  true
     */
    @Column(name = "FILE_TYPE")
    private String fileType;

    /**
     * 文件后缀
     * <p>
     * Table:     T_XTDC_ATTACH
     * Column:    FILE_EXTENSIONS
     * Nullable:  true
     */
    @Column(name = "FILE_EXTENSIONS")
    private String fileExtensions;

    /**
     * 保存数据库(1-是；0-否）
     * <p>
     * Table:     T_XTDC_ATTACH
     * Column:    IS_CONTEXT
     * Nullable:  true
     */
    @Column(name = "CONTEXT_SAVE")
    private String contextSave;

    /**
     * 附件上传类型(hand-人工;sys-系统生成)
     * <p>
     * Table:     T_XTDC_ATTACH
     * Column:    UPLOAD_TYPE
     * Nullable:  true
     */
    @Column(name = "UPLOAD_TYPE")
    private String uploadType;

    /**
     * 文件下载次数
     * <p>
     * Table:     T_XTDC_ATTACH
     * Column:    DOWNLOAD_COUNT
     * Nullable:  true
     */
    @Column(name = "DOWNLOAD_COUNT")
    private Long downloadCount;

    /**
     * 文档目录ID
     * <p>
     * Table:     T_XTDC_ATTACH
     * Column:    FOLDER_ID
     * Nullable:  false
     */
    @Column(name = "FOLDER_ID")
    private String folderId;

    /**
     * 来源GUID
     * <p>
     * Table:     T_XTDC_ATTACH
     * Column:    SOURCE_GUID
     * Nullable:  true
     */
    @Column(name = "SOURCE_GUID")
    private String sourceGuid;

    /**
     * 来源（内容为表名）
     * <p>
     * Table:     T_XTDC_ATTACH
     * Column:    SOURCE_MODEL
     * Nullable:  true
     */
    @Column(name = "SOURCE_MODEL")
    private String sourceModel;

    /**
     * 存储方式（FTP-服务器；DB-数据库）
     * <p>
     * Table:     T_XTDC_ATTACH
     * Column:    STORE_WAY
     * Nullable:  true
     */
    @Column(name = "STORE_WAY")
    private String storeWay;

    /**
     * 备注
     * <p>
     * Table:     T_XTDC_ATTACH
     * Column:    REMARK
     * Nullable:  true
     */
    @Column(name = "REMARK")
    private String remark;

    /**
     * 排序
     * <p>
     * Table:     T_XTDC_ATTACH
     * Column:    ROW_ORDER
     * Nullable:  true
     */
    @Column(name = "ROW_ORDER")
    private String rowOrder;
    /**
     * 文件内容
     * <p>
     * Table:     T_XTDC_ATTACH
     * Column:    FILE_CONTENT
     * Nullable:  true
     */
    @Column(name = "FILE_CONTENT")
    private String fileContent;
    /**
     * 父文件夹
     * <p>
     * Table:     T_XTDC_ATTACH
     * Column:    FILE_STATUS
     * Nullable:  true
     */
    @Column(name = "FILE_STATUS")
    private String fileStatus;
    private static final long serialVersionUID = 1L;
}